#include <iostream>
using namespace std;

class Cube {

    // write your code here......
private:
    int c_length;
    int c_width;
    int c_height;
public:
    void setLength(int length){
        c_length = length;
    }
    void setWidth(int width){
        c_width = width;
    }
    void setHeight(int height){
        c_height = height;
    }
    int getLength(){
        return c_length;
    }
    int getWidth(){
        return c_width;
    }
    int getHeight(){
        return c_height;
    }
    int getArea(){
        return 2 * c_height * c_length + 2 * c_height * c_width + 2 * c_length * c_width;
    }
    int getVolume(){
        return c_height * c_length * c_width;
    }
};

int main() {

    int length, width, height;
    cin >> length;
    cin >> width;
    cin >> height;

    Cube c;
    c.setLength(length);
    c.setWidth(width);
    c.setHeight(height);

    cout << c.getLength() << " "
        << c.getWidth() << " "
        << c.getHeight() << " "
        << c.getArea() << " "
        << c.getVolume() << endl;

    return 0;
}